﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccessLayer;
using GlobalObjects;
using PusherServer;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
          //  UserEntity test = new UserEntity();
          //  DeviceEntity deviceTest = new DeviceEntity();
          //  Console.WriteLine("Starting");
          //  // test.changeName("Pejmon",1);
          // // test.addUserRaw("Mr", "Pejman", "Aghili", "peji", "pejman123", "UCL", "pejiks@yahoo.com", "Iran", "Educational");
          // //test.showUsers();
          //  User createduser = new User();
          //  createduser.Username = "test2";
          // // createduser.password = "test";
          //  createduser.Title = "mr";
          //  createduser.FirstName = "Zara";
          //  createduser.LastName = "efg";
          //  createduser.Organisation = "fbi";
          //  createduser.Email = "123";
          //  createduser.Country = "us";
          //  createduser.Purpose = "fun";
          // // test.addUser(createdUser);
          //  //Console.WriteLine(test.checkUsername("peji"));

          ////  deviceTest.addDevice(device);
          //  UserDetails ud = test.updateUserById_DAL(20, createduser);
          //  Console.WriteLine(ud.FirstName);
          //  Console.ReadLine();
            var pusher = new Pusher("49656", "3a96bb88c88f38d16083", "319cf390152ad39a1132");
            var result = pusher.Trigger("1057", "2318", new { message = "Sensor Not Working", distance = "10", sensorId = "2358" });
             
           // DataAccessLayer.EmailSender email = new DataAccessLayer.EmailSender();
         //   email.Submit();

        }
    }
}
